package com.mrjy.coursepackage.dao;

import com.mrjy.common.entity.UserCoursePackageRel;

import java.util.List;

public interface IUserCoursePackageDao {

	int insert(UserCoursePackageRel rel);

	int hasClickHistory(Integer userId);

	UserCoursePackageRel queryByUserIdAndCoursePackageId(
			UserCoursePackageRel rel);

	int updateByUserIdAndCoursePackageId(UserCoursePackageRel rel);

    List<UserCoursePackageRel> queryClassmate(UserCoursePackageRel userCoursePackageRel);

    int countClassmate(UserCoursePackageRel userCoursePackageRel);

}
